﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DTO;

namespace DAO
{
    public class VATDAO
    {
        public void SuaVAT(VATDTO DTO)
        {
            Data a = new Data();
            string sql = "update ThamSo set GT=" + DTO.VAT1;
            a.ExecuteNonQuery(sql);
        }
        public DataTable LoadVAT()
        {
            Data a = new Data();
            DataTable d = new DataTable();
            string sql = "select * from ThamSo";
            d = a.ExecuteQuery(sql);
            return d;
        }
    }
}
